package com.garlic.face.jlf.transaction.balance.database;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;

@Entity
public class GoodsWeight {
    @Id
    private String id;
    @NotNull
    private String barcode;
    @NotNull
    private int qty;
    @NotNull
    private Double weight;
    @NotNull
    private  String approvedflag;
    @NotNull
    private int deviationtype;//误差类型 0-绝对值误差；1-百分比误差  自学习时，默认“0-绝对值误差”，如果商品重量小于默认绝对值误差，系统自动设定默认20%百分百误差
    @NotNull
    private Double abs_deviation;
    @NotNull
    private Double per_deviation;
    @NotNull
    private String goodsattr;
    @NotNull
    private int restype;
    @NotNull
    private int expirydays;
    private String subcode;
    private String remark;
    @NotNull
    private String state;
    @NotNull
    private String update_name;
    @NotNull
    private String update_date;
    @NotNull
    private String update_by;
    @NotNull
    private String create_name;
    @NotNull
    private String create_date;
    @NotNull
    private String create_by;
    /// <summary>
    /// 作为临时标志使用
    /// 商品类型 0-普通商品 1-称重商品
    /// </summary>
    private String plutype;
    @Generated(hash = 1355004012)
    public GoodsWeight(String id, @NotNull String barcode, int qty, @NotNull Double weight,
            @NotNull String approvedflag, int deviationtype, @NotNull Double abs_deviation,
            @NotNull Double per_deviation, @NotNull String goodsattr, int restype, int expirydays,
            String subcode, String remark, @NotNull String state, @NotNull String update_name,
            @NotNull String update_date, @NotNull String update_by, @NotNull String create_name,
            @NotNull String create_date, @NotNull String create_by, String plutype) {
        this.id = id;
        this.barcode = barcode;
        this.qty = qty;
        this.weight = weight;
        this.approvedflag = approvedflag;
        this.deviationtype = deviationtype;
        this.abs_deviation = abs_deviation;
        this.per_deviation = per_deviation;
        this.goodsattr = goodsattr;
        this.restype = restype;
        this.expirydays = expirydays;
        this.subcode = subcode;
        this.remark = remark;
        this.state = state;
        this.update_name = update_name;
        this.update_date = update_date;
        this.update_by = update_by;
        this.create_name = create_name;
        this.create_date = create_date;
        this.create_by = create_by;
        this.plutype = plutype;
    }
    @Generated(hash = 948416234)
    public GoodsWeight() {
    }
    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getBarcode() {
        return this.barcode;
    }
    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }
    public int getQty() {
        return this.qty;
    }
    public void setQty(int qty) {
        this.qty = qty;
    }
    public Double getWeight() {
        return this.weight;
    }
    public void setWeight(Double weight) {
        this.weight = weight;
    }
    public String getApprovedflag() {
        return this.approvedflag;
    }
    public void setApprovedflag(String approvedflag) {
        this.approvedflag = approvedflag;
    }
    public int getDeviationtype() {
        return this.deviationtype;
    }
    public void setDeviationtype(int deviationtype) {
        this.deviationtype = deviationtype;
    }
    public Double getAbs_deviation() {
        return this.abs_deviation;
    }
    public void setAbs_deviation(Double abs_deviation) {
        this.abs_deviation = abs_deviation;
    }
    public Double getPer_deviation() {
        return this.per_deviation;
    }
    public void setPer_deviation(Double per_deviation) {
        this.per_deviation = per_deviation;
    }
    public String getGoodsattr() {
        return this.goodsattr;
    }
    public void setGoodsattr(String goodsattr) {
        this.goodsattr = goodsattr;
    }
    public int getRestype() {
        return this.restype;
    }
    public void setRestype(int restype) {
        this.restype = restype;
    }
    public int getExpirydays() {
        return this.expirydays;
    }
    public void setExpirydays(int expirydays) {
        this.expirydays = expirydays;
    }
    public String getSubcode() {
        return this.subcode;
    }
    public void setSubcode(String subcode) {
        this.subcode = subcode;
    }
    public String getRemark() {
        return this.remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getState() {
        return this.state;
    }
    public void setState(String state) {
        this.state = state;
    }
    public String getUpdate_name() {
        return this.update_name;
    }
    public void setUpdate_name(String update_name) {
        this.update_name = update_name;
    }
    public String getUpdate_date() {
        return this.update_date;
    }
    public void setUpdate_date(String update_date) {
        this.update_date = update_date;
    }
    public String getUpdate_by() {
        return this.update_by;
    }
    public void setUpdate_by(String update_by) {
        this.update_by = update_by;
    }
    public String getCreate_name() {
        return this.create_name;
    }
    public void setCreate_name(String create_name) {
        this.create_name = create_name;
    }
    public String getCreate_date() {
        return this.create_date;
    }
    public void setCreate_date(String create_date) {
        this.create_date = create_date;
    }
    public String getCreate_by() {
        return this.create_by;
    }
    public void setCreate_by(String create_by) {
        this.create_by = create_by;
    }
    public String getPlutype() {
        return this.plutype;
    }
    public void setPlutype(String plutype) {
        this.plutype = plutype;
    }
}
